package com.sunnada.edu.system.pub.common;

/**
 * explain
 * 
 * @author chs 2014-11-04 version 1.0
 */
public class Constants {
	/** 调用接口开关 */
	public static final String INTER_OPEN = "1"; // 0模拟 1接口

	public static final String USER_SHCHOOLID = "USER_SHCHOOLID_SESSION";
	/**
	 * 现网地址 https://jkzy.10010.com:8083
	 * */
	public static final String UNION_URL = "https://jkzy.10010.com:8083";
	/** 版本信息 */
	public static final String VERSION = "v1.86";
	/** 登录key临时 */
	public static final String LOGIN_CLIENT_KEY = "SUNNADA_LOGIN_CLIENT_KEY";
	/** 登录key保存 */
	public static final String LOGIN_CLIENT_KEY1 = "SUNNADA_LOGIN_CLIENT_KEY";
	/** 默认角色 */
	public static final String USER_COMMON_ROLE = "COMMON";
	/** 默认密码 */
	public static final String USER_PASSWORD = "888888";
	/** 默认加密的密钥 */
	public static final String SECRET_KEY = "101126252492015147";
	/** 发展人默认密码 */
	public static final String EMPLOYEE_PASSWORD = "12345678";
	/** 发告别人默认密码 */
	public static final String LOGIN_PASSWORD = "888888";
	/** 省份ID */
	public static final String PROVINCE_ID = "SUNNADA_PROVINCE_ID_SESSION";
	public static final String CITY_ID = "SUNNADA_CITY_ID_SESSION";
	/** 用户信息 */
	public static final String USER_SESSION = "SUNNADA_USER_SESSION";
	/** 用户ID */
	public static final String USER_ID_SESSION = "SUNNADA_USER_ID_SESSION";
	/** 用户名称 */
	public static final String USER_NAME_SESSION = "SUNNADA_USER_NAME_SESSION";
	/** 用户区域 */
	public static final String USER_AREA_CODE = "SUNNADA_USER_AREA_CODE";
	/** 用户区域简称 */
	public static final String USER_AREA_SNAME = "SUNNADA_USER_AREA_SNAME";
	/** 发展人编码 */
	public static final String DEVELOPER_ID_SESSION = "SUNNADA_DEVELOPER_ID_SESSION";
	/** 发展人姓名 */
	public static final String DEVELOPER_NAME_SESSION = "SUNNADA_DEVELOPER_NAME_SESSION";
	/** 营业员工号 */
	public static final String EMPLOYEE_ID_SESSION = "SUNNADA_EMPLOYEE_ID_SESSION";
	/** 营业员姓名 */
	public static final String EMPLOYEE_NAME_SESSION = "SUNNADA_EMPLOYEE_NAME_SESSION";
	/** 营业员区域 */
	public static final String EMPLOYEE_AREA_CODE_SESSION = "SUNNADA_EMPLOYEE_AREA_CODE_SESSION";
	/** 营业员渠道编码 */
	public static final String EMPLOYEE_DEPARTID_SESSION = "SUNNADA_EMPLOYEE_DEPARTID_SESSION";
	/** 登录用户类型 */
	public static final String USER_TYPE = "SUNNADA_USER_TYPE";

	public static final String USER_TYPE1 = "USER_TYPE1";
	/** 营业员角色 */
	public static final String ROLE_EMPLOYEE = "营业员用户";
	/** 发展人角色 */
	public static final String ROLE_DEVELOPER = "发展人用户";
	/** 号码导入选择区域 */
	public static final String PHONE_AREA = "PHONE_AREA";
	/** 密钥 */
	public static final String PHONE_KEYS = "1234567";
	/** 账号rsa */
	public static final String U = "u";
	public static final String P = "p";
	/** 客户端操作系统 */
	public static final String DEV_TYPE = "SUNNADA_DEV_TYPE";
	/** 客户端版本号v1.4 */
	public static final String CLIENT_VRESION = "SUNNADA_CLIENT_VRESION";

	/** 生成密钥的随机数 **/
	public static final String DESRANDOMSTRING = "SUNNADA_DES_RANDOM";
	/** 用随机数生成出来的密钥 **/
	public static final String DESSTRING = "SUNNADA_DES";
	/** 自登陆的标志 */
	public static final String SELLOGIN = "hsdfjlajflajlfanfdfgad2";

	/** 临时解码器服务端的IP和端口 */

	public static final String DECODERIP = "220.250.52.18";
	public static final String PORT = "23800";
	/*
	 * public static final String DECODERIP="220.250.52.18"; public static final
	 * String PORT="48000";
	 */

	/*
	 * public static final String DECODERIP="118.212.184.173"; public static
	 * final String PORT="20001";
	 */

	/** 后台 联通号码验证 */
	/** web 端联通号码验证 */
	public static final String PHONE_REGEX = "(13[0-2]|155|156|186|185|145|176|175)[0-9]{8}";
	/** web 端联通号码验证 */
	public static final String CLIENT_PHONE_REGEX = "/(13[0-2]|155|156|186|185|145|176|175)[0-9]{8}/";
	public static final String SIMNUM_REGEX = "[0-9]{19,20}";
	public static final String NUMSECI_REGEX = "((13[0-2]|155|156|186|185)[0-9]{4})|([0-9]{3,4})";
	public static final String MONEY_REGEX = "^[0-9]\\d{0,3}$";
	public static final String CLIENT_USERID_REGEX = "/[0-9a-zA-Z^%&-_',;=?$\\x22]*/";

	/** 密码验证 */
	public static final String PWDTEST[] = { "[a-z]", "[A-Z]", "[0-9]", "[\\u0020-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E]" };
	/** 中文验证 */
	public static final String CHINESS = "[\\u4E00-\\u9FA5]|[\\uFE30-\\uFFA0]gi";
	/** 用户使用的屏幕高度 */
	public static final String USER_SCREEN_HEIGHT = "SUNNADA_USER_SCREEN_HEIGHT";

	public static final String TEACHER_TYPE = "TEACHER_TYPE";
	/** 默认页面记录数变量 */
	public static final String PAGE_SIZE = "SUNNADA_PAGE_SIZE";

	public static final String DEV_PAGE_HEIGHT = "SUNNADA_DEV_PAGE_HEIGHT";

	/** 默认密码 */
	public static final String INIT_PASSWORD = "123456";
	/** 视频 */
	public static final String ELEMENT_TYPE1 = "1";
	/** 图片 */
	public static final String ELEMENT_TYPE2 = "2";
	/** 文本 */
	public static final String ELEMENT_TYPE3 = "3";
	/** 天气 */
	public static final String ELEMENT_TYPE4 = "4";
	/** 音频 */
	public static final String ELEMENT_TYPE5 = "5";
	/** 日期 */
	public static final String ELEMENT_TYPE6 = "6";
	/** 星期 */
	public static final String ELEMENT_TYPE7 = "7";
	/** 时间 */
	public static final String ELEMENT_TYPE8 = "8";
	/** RSS */
	// public static final String ELEMENT_TYPE9="9";
	/** 视频后缀 */
	public static final String VIDEO_SUFFIX = "mpg,mepg,avi,mp4,mkv,m2t,flv,mov,wmv,rmvb,vob,3gp,swf";
	/** 音频后缀 */
	public static final String AUDIO_SUFFIX = "mp3";
	/** 图片后缀 */
	public static final String IMAGE_SUFFIX = "bmp,gif,png,jpeg,jpg";

	public static final String DEVELOPER_PWD = "540886_540886";

	public static final String DEVELOPER_CODE = "100101";
	/** 判断数据库类型字段 */
	public static final String DATEBASE_TYPE = "mysql";
	/** 该变量用于，session中存储用户权限链接，进行过滤器判断。 */
	public static final String USER_LINK_PATH = "USER_LINK_PATH";

}
